#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QtQuickWidgets/QQuickWidget>
#include <QUrl>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();

    Q_INVOKABLE void setText(QString url);

signals:
    void sigGo(QUrl url);
    void sigReflash();
    void sigForward();
    void sigBack();

private slots:
    void on_btnBack_clicked();

    void on_btnRefresh_clicked();

    void on_btnForward_clicked();

    void on_btnGo_clicked();

private:
    Ui::Widget *ui;
    QQuickWidget* m_pWebView;

};

#endif // WIDGET_H
